Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

show duration on success #636

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

boonedox
Copy link

  • track start time when thread starts
  • calculate duration when thread completes
  • show duration in seconds on success

Test Plan: tested in my local environment for several days

  - track start time when thread starts
  - calculate duration when thread completes
  - show duration in seconds on success

Test Plan: tested in my local environment for several days
@@ -70,6 +71,7 @@ def __init__(self, operation, **kwargs):
self.view = None
self.window = None
self.printer = None
self.start_time = time.time()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@boonedox should this be:

self.start_time=kwargs.get('start_time', time.time()),

?

@boonedox
Copy link
Author

Yes, it should. I'll update the pull request.

@boonedox
Copy link
Author

Those changes are now part of the pull request. Let me know if you have any other suggestions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants